package cn.lcsjsxy.yxc.collections_framework.Map;

import java.io.FileInputStream;
import java.util.Properties;

public class PropertiesTest {
    //Properties:常用来处理配置文件。key和value都是String类型
    public static void main(String[] args) throws Exception {
        Properties pros=new Properties();
        FileInputStream fis=new FileInputStream("jdbc.properties");
        pros.load(fis);
        String name=pros.getProperty("name");
        String password= pros.getProperty("password");
        System.out.println("name="+name+",password="+password);
    }
}
